]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-camera-monitor: Fix warning about strict aliasing
authorPhilip Withnall <pwithnall@gnome.org>
Tue, 28 May 2024 17:08:27 +0000 (18:08 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 28 May 2024 17:39:46 +0000 (17:39 +0000)
commit37e49e8a22c223b030297f9607bdb748c219e060
treeef08a2c06243b0d682b868dc5d342b88adefe590
parent245d55488b012b97ef32d8958a4457947de9f318
shell-camera-monitor: Fix warning about strict aliasing

Changing type when casting a double pointer is not strictly allowed in
C. In order to fix compilation with `-fstrict-aliasing`, don’t use
`g_clear_pointer()` for clearing this pointer where the type expected by
the destroy notify function does not match the type stored in the
`ShellCameraMonitor` struct.

This introduces no functional changes.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3351>
src/shell-camera-monitor.c